package com.zmn.oms.common.utils;

import com.zmn.common.constant.GlobalConsts;
import com.zmn.oms.common.constant.OrderConsts;

import java.util.Objects;

/**
 * 类描述：渠道工具类
 *
 * @author LiangHailong
 * @date 2019/07/30 10:36
 */
public final class ChannelUtil {

    /**
     * 判断该渠道是否需要回复订单预警
     * @param channelId
     * @return
     */
    public static boolean needOrderWarnReply(Integer channelId) {
        if (Objects.equals(OrderConsts.CHANNEL_ID_TMALL_WYG, channelId)
                || Objects.equals(OrderConsts.CHANNEL_ID_TMALL_BIZ_OPPEIN, channelId)
                || Objects.equals(OrderConsts.CHANNEL_ID_TMALL_BIZ_LAIMD, channelId)
                || Objects.equals(OrderConsts.CHANNEL_ID_TMALL_BUSINESS, channelId)) {
            return true;
        }

        return false;
    }

    /**
     * 私有构造器
     */
    private ChannelUtil(){}
}
